package com.zzy.controller;

import com.zzy.domain.Result;
import com.zzy.domain.dto.WarehousingEntryDto;
import com.zzy.domain.vo.WarehousingEntry;
import com.zzy.service.WarehousingEntryDetailsService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/warehousing_entry_details")
@RequiredArgsConstructor
public class WarehousingEntryDetailsController {
    private final WarehousingEntryDetailsService warehousingEntryDetailsService;

    /**
     *
     * 分页查询,按照批次和状态查询
     * @param dto
     * @return
     */
    @GetMapping("/page")
    public Result Page(WarehousingEntryDto dto){
       return Result.success(warehousingEntryDetailsService.getpage(dto));
    }


}
